package jmu.edu.yjc.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import jmu.edu.yjc.domain.ResponseResult;
import jmu.edu.yjc.domain.dto.UserDto;
import jmu.edu.yjc.domain.dto.UserRegisterDto;
import jmu.edu.yjc.domain.entity.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


/**
 * 用户表(User)表服务接口
 *
 * @author makejava
 * @since 2023-01-17 17:06:08
 */
public interface UserService extends IService<User> {
    ResponseResult userInfo();

    ResponseResult saveUserInfo(User user);

    ResponseResult userRegister(HttpServletRequest request,UserRegisterDto user);

    ResponseResult listUser(Integer pageNum, Integer pageSize, String userName, String phonenumber, String status);

    ResponseResult addUser(UserDto userDto);

    ResponseResult editUser(Long userId);

    ResponseResult doEditUser(UserDto userDto);
    List<String> userCountByProvince();
    List<User> getServers();
    User getRobot();

    ResponseResult queryUser(String query);

    List<String> getUserAreaList();

    ResponseResult updatePassword(HttpServletRequest request, UserRegisterDto user);
    boolean userNameExist(String userName);
}

